package com.sxz.sbs.module.client.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sxz.sbs.R;
import com.sxz.sbs.module.client.bean.ClientStallListBean;

import java.util.List;

/**
 * 车位列表Adapter
 */

public class StallListAdapter extends BaseQuickAdapter<ClientStallListBean,BaseViewHolder>{

    public StallListAdapter(@Nullable List<ClientStallListBean> data) {
        super(R.layout.item_stalllist,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ClientStallListBean item) {
        helper.setText(R.id.tv_stallNumber,item.getTxt_ParkSpaceNum());
        helper.setText(R.id.stall_type,item.getSpaceTypeName()+"");
        helper.setText(R.id.stall_price,item.getTxt_SpacePrice());
        helper.setText(R.id.stall_remark,item.getTxt_Remark());
        helper.addOnClickListener(R.id.btn_stall_delete);

    }
}
